﻿<local:BaseLab x:Class="Rxx.Labs.Reactive.UI.ObservableDirectoryLab"
							 xmlns:local="clr-namespace:Rxx.Labs"
							 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
							 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
							 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
							 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
							 mc:Ignorable="d" 
							 d:DesignHeight="300" d:DesignWidth="300"
							 DataContext="{Binding RelativeSource={RelativeSource Self}}">

	<DockPanel>

		<DockPanel DockPanel.Dock="Top">
			<Label DockPanel.Dock="Left" Target="{Binding ElementName=PathTextBox}" Content="Directory: "
						 Margin="5,5,0,5" />

			<Button DockPanel.Dock="Right" Name="BrowseButton" Content="Browse..." Click="BrowseButton_Click"
							Margin="5" Padding="5,0" />

			<TextBox Name="PathTextBox" Text="{Binding Path, Mode=OneWay}" IsReadOnly="True"
							 Margin="0,5" />
		</DockPanel>

		<ListBox ItemsSource="{Binding Directory}" Margin="10" />

	</DockPanel>

</local:BaseLab>